FindWindow Result Code Constants
CHANGED WITH THE APPEARANCE MANAGER
When your application receives a mouse-down event, you typically callFindWindow
.FindWindow
returns an integer that specifies the location, in global coordinates, of the cursor at the time the user pressed the mouse button.
enum { inDesk = 0, inMenuBar = 1, inSysWindow = 2, inContent = 3, inDrag = 4, inGrow = 5, inGoAway = 6, inZoomIn = 7, inZoomOut = 8, inCollapseBox = 11 };Constant descriptions
inDesk
- The cursor is in the desktop region, not in the menu bar, a driver window, or any window that belongs to your application. When
FindWindow
returnsinDesk
, your application doesn't need to do anything.inMenuBar
- The user has pressed the mouse button while the cursor is in the menu bar. When
FindWindow
returnsinMenuBar
, your application typically adjusts its menus and then calls the Menu Manager functionMenuSelect
to let the user choose menu items.inSysWindow
- The user has pressed the mouse button while the cursor is in a window belonging to a driver in your application's partition. If
FindWindow
returnsinSysWindow
, your application typically calls the functionSystemClick
.inContent
- The user has pressed the mouse button while the cursor is in the content area (excluding the size box in an active window) of one of your application's windows. When
FindWindow
returnsinContent
, your application determines how to handle clicks in the content region.inDrag
- The user has pressed the mouse button while the cursor is in the drag region of a window. When
FindWindow
returnsinDrag
, your application typically callsDragWindow
to let the user drag the window to a new location.inGrow
- The user has pressed the mouse button while the cursor is in an active window's size box. When
FindWindow
returnsinGrow
, your application typically callsGrowWindow
.inGoAway
- The user has pressed the mouse button while the cursor is in an active window's close box. When
FindWindow
returnsinGoAway
, your application typically callsTrackGoAway
to track mouse activity while the button is down and then calls its own function for closing a window if the user releases the button while the cursor is in the close box.inZoomIn
- The user has pressed the mouse button while the cursor is in the zoom box of an active window that is currently in the standard state. When
FindWindow
returnsinZoomIn
, your application typically callsTrackBox
to track mouse activity while the button is down and then calls its own function for zooming a window if the user releases the button while the cursor is in the zoom box.inZoomOut
- The user has pressed the mouse button while the cursor is in the zoom box of an active window that is currently in the user state. When
FindWindow
returnsinZoomOut
, your application typically calls the functionTrackBox
to track mouse activity while the button is down. Your application then calls its own function for zooming a window if the user releases the button while the cursor is in the zoom box.inCollapseBox
- The user has pressed the mouse button while the cursor is in an active window's collapse box. When
FindWindow
returnsinCollapseBox
, your application typically does nothing, because the system will collapse your window for you.WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
TheinCollapseBox
constant will not be returned byFindWindow.